package org.example.domain.vo.report.materialStock;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@EqualsAndHashCode(callSuper = false)
@Data
@ApiModel(description = "商品库存流水视图类")
public class InventoryFlows {
    @ApiModelProperty("单据编号")
    private String headNumber;
    
    @ApiModelProperty("类型")
    private String type;
    
    @ApiModelProperty("条码")
    private String barCode;
    
    @ApiModelProperty("名称")
    private String materialName;
    
    @ApiModelProperty("仓库名称")
    private String deportName;
    
    @ApiModelProperty("数量")
    private Integer number;
    
    @ApiModelProperty("日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
}
